package com.cqeec.myblog.service;

import java.sql.SQLException;

import com.cqeec.myblog.dao.BloggerDao;
import com.cqeec.myblog.dao.BloggerDaoImpl;
import com.cqeec.myblog.model.Blogger;

public class BloggerServiceImpl implements BloggerService {

	@Override
	public Blogger login(String name, String password) throws ClassNotFoundException, SQLException {
		BloggerDao bloggerDao = new BloggerDaoImpl();
		return bloggerDao.findByNameAndPassword(name, password);
	}

}
